package work;

// 爬行动物类
public class ReptileImpl implements Reptile {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected String name;
    public ReptileImpl(){

    }
    public ReptileImpl(String name) {
        this.name = name;
    }

    @Override
    public void crawl() {
    }

    @Override
    public void makeSound() {
    }

    @Override
    public void displayDetails() {
        this.move();
    }

    public void move(){
        System.out.println("爬行动物是爬的");
    }
}

